package com.dingpeikeji.quickdeer.modules.applycargo.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.User;

/**
 * 客运公司车辆加盟Entity
 * @author dp
 * @version 2017-01-04
 */
public class TApplycargo extends DataEntity<TApplycargo> {
	
	private static final long serialVersionUID = 1L;
	
	// 状态的取值
	public static final String AUDITSTATUS_NEW = "1"; // 新提交
	public static final String AUDITSTATUS_DONE = "2"; // 已反馈
	
	private Integer acid;		// 主键
	private String contacts;		// 联系人
	private String contactstel;		// 联系人手机
	private String email;		// 联系人邮箱
	private String companyname;		// 公司名称
	private String range;		// 运营范围
	private Integer vehinum;		// 车辆规模
	private String auditstatus;		// 状态
	private User	auditor;		//审批人
	
	public TApplycargo() {
		super();
	}

	public TApplycargo(String id){
		super(id);
	}

	public Integer getAcid() {
		return acid;
	}

	public void setAcid(Integer acid) {
		this.acid = acid;
	}
	
	@Length(min=1, max=30, message="联系人长度必须介于 1 和 30 之间")
	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}
	
	public String getContactstel() {
		return contactstel;
	}

	public void setContactstel(String contactstel) {
		this.contactstel = contactstel;
	}
	
	@Length(min=0, max=200, message="联系人邮箱长度必须介于 0 和 200 之间")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@Length(min=1, max=100, message="公司名称长度必须介于 1 和 100 之间")
	public String getCompanyname() {
		return companyname;
	}

	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}
	
	@Length(min=1, max=255, message="运营范围长度必须介于 1 和 255 之间")
	public String getRange() {
		return range;
	}

	public void setRange(String range) {
		this.range = range;
	}
	
	@NotNull(message="车辆规模不能为空")
	public Integer getVehinum() {
		return vehinum;
	}

	public void setVehinum(Integer vehinum) {
		this.vehinum = vehinum;
	}
	
	@Length(min=1, max=1, message="状态长度必须介于 1 和 1 之间")
	public String getAuditstatus() {
		return auditstatus;
	}

	public void setAuditstatus(String auditstatus) {
		this.auditstatus = auditstatus;
	}

	public User getAuditor() {
		return auditor;
	}

	public void setAuditor(User auditor) {
		this.auditor = auditor;
	}
	
}